package com.jianguo.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jianguo.common.annotation.Excel;
import com.jianguo.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Data
public class UserInfo {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * 电话
     */
    @Excel(name = "电话")
    private String mobile;
    /**
     * 余额
     */
    @Excel(name = "余额")
    private Long balance;
    private String email;
    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String nickname;
    /**
     * 账号
     */
    @Excel(name = "账号")
    private String account;
    @Excel(name = "积分")
    private Integer fen;
    @Excel(name = "优惠卷")
    private Integer juan;
    /**
     * 头像
     */
    @Excel(name = "头像")
    private String pic;
    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long status;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("mobile", getMobile())
                .append("nickname", getNickname())
                .append("account", getAccount())
                .append("pic", getPic())
                .append("status", getStatus())
                .toString();
    }


}
